// 文章首页
export const getArticleUrl = ({
  language
}:{ 
  language: string 
})=>{
  return `/${language}/news`
}

// 文章详情页
export const getArticleDetailUrl = ({
  language,
  article
}:{ 
  language: string 
  article: string
})=>{
  return `/${language}/news/article/${article}`
}

// 视频详情页
export const getVideoDetailUrl = ({
  language,
  video
}:{ 
  language: string 
  video: string
})=>{
  return `/${language}/news/video/${video}`
}

// 作者详情页
export const getAuthorDetailUrl = ({
  language,
  author
}:{ 
  language: string 
  author: string
})=>{
  return `/${language}/news/author/${author}`
}

// 分类页
export const getCategoryUrl = ({
  language,
  category,
  fatherCategory,
  type
}:{ 
  language: string 
  category: string
  fatherCategory?: string
  type: 'video' | 'article'
})=>{
  if(fatherCategory){
    return `/${language}/news/${type}/category/${fatherCategory}/${category}`
  }
  return `/${language}/news/${type}/category/${category}`
}